package com.hksj.Intelligentmanagement.controller;

import com.hksj.Intelligentmanagement.common.Result;
import com.hksj.Intelligentmanagement.dto.AurgicalAssistantRelationDTO;
import com.hksj.Intelligentmanagement.service.SurgicalAssistantRelationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName SurgicalAssistantRelationController
 * @Description TODO
 * @Author @陈章
 * @Date 2023/3/31 17:15
 * @Version 1.0
 */
@Api(tags = "手术协助人员管理")
@RestController
@RequestMapping("/api/surgicalAssistantRelation")
public class SurgicalAssistantRelationController {

    @Autowired
    private SurgicalAssistantRelationService surgicalAssistantRelationService;

    @ApiOperation(value = "手术协助人员管理新增")
    @PostMapping("/addSurgicalAssistantRelation")
    public Result addSurgicalAssistantRelation(@RequestBody String operatingRoomInfoId, @RequestBody List<AurgicalAssistantRelationDTO> param) {
        surgicalAssistantRelationService.addSurgicalAssistantRelation(operatingRoomInfoId, param);
        return Result.ok();
    }
}
